/**
 * a < b 返回ture 
 * @param a '08:00'
 * @param endTime  '08:01'
 */

function lt(a: string, b: string) {
  for (let i = 0; i < 5; i++) {
    if (b[i] > a[i]) { return true }
    else if (b[i] < a[i]) { return false }
    else {continue;}
  }
  // equals
  return false
}
/**
 * a > b 返回ture 
 * @param a '08:00'
 * @param b  '08:01'
 */
function gt(a: string, b: string) {
  return lt(b, a)
}

export default { gt, lt }
